﻿<UserControl xmlns:Views="clr-namespace:VisualPoint.Controls.Views"  x:Class="VisualPoint.Controls.VisualPointControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             Background="{DynamicResource VsBrush.Window}"
             Foreground="{DynamicResource VsBrush.WindowText}"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300"
             Name="VisualPointWindow" Loaded="VisualPointWindow_Loaded" Unloaded="VisualPointWindow_Unloaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition x:Name="rowDef1" Height="75*"/>
            <RowDefinition x:Name="rowDef2" Height="2"/>
            <RowDefinition x:Name="rowDef3" Height="25*"/>
        </Grid.RowDefinitions>

        <Grid Grid.Row="0" >
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <ToolBar x:Name="toolbar" VerticalAlignment="Top" Background="White" Height="30" Grid.Row="0"  Visibility="Collapsed">
                <!--
                <Button x:Name="btnStart" Click="btnStart_Click"  ToolTip="Start Slide Show">
                    <Image Source="/VisualPoint.Controls;component/Images/back.png"   />
                </Button>
                -->
                <Button x:Name="btnNew" Click="btnNewPresentation_Click"  ToolTip="New Presentation">
                    <Image Source="/VisualPoint.Controls;component/Images/NewFile.png"   />
                </Button>

                <Button x:Name="btnOpen" Click="btnOpenPresentation_Click"  ToolTip="Open Presentation">
                    <Image Source="/VisualPoint.Controls;component/Images/FileOpen.png"   />
                </Button>

                <Button x:Name="btnSave" Click="btnSavePresentation_Click"  ToolTip="Save Presentation">
                    <Image Source="/VisualPoint.Controls;component/Images/save.png"   />
                </Button>
                <Button x:Name="btnSaveAs" Click="btnSaveAsPresentation_Click"  ToolTip="Save as Presentation">
                    <Image Source="/VisualPoint.Controls;component/Images/save_as.png"   />
                </Button>

                <Separator/>
                <Button x:Name="btnPrevious" Click="btnPrevious_Click"  ToolTip="Previous Slide">
                    <Image Source="/VisualPoint.Controls;component/Images/back.png"   />
                </Button>
                <Button x:Name="btnNext" Click="btnNext_Click"  ToolTip="Next Slide">
                    <Image Source="/VisualPoint.Controls;component/Images/next.png"   />
                </Button>

                <Separator/>

                <Button x:Name="btnRestart" Click="btnRestart_Click"  ToolTip="Restart slideshow">
                    <Image Source="/VisualPoint.Controls;component/Images/refresh.png"   />
                </Button>

                <Separator/>

                <Button x:Name="btnMinimize" Click="btnMinimize_Click" Foreground="White" Visibility="Collapsed" ToolTip="Minimize" >
                    <Image Source="/VisualPoint.Controls;component/Images/minimize.png"   />
                </Button>

                <Button x:Name="btnNormalSize" Click="btnNormalSize_Click" Foreground="White" ToolTip="Normal" >
                    <Image Source="/VisualPoint.Controls;component/Images/maximize.png"   />
                </Button>

                <Button x:Name="btnFullscreen" Click="btnFullscreen_Click" Foreground="White" ToolTip="Fullscreen" >
                    <Image Source="/VisualPoint.Controls;component/Images/fullscreen.png"   />
                </Button>
            </ToolBar>
            <TextBlock x:Name="Message" Grid.Row="1" Visibility="Collapsed" />
            <Grid x:Name="AxHost" Grid.Row="2" />
        </Grid>

        <GridSplitter x:Name="splitter"
            Grid.Row="1" Background="Gray"
                HorizontalAlignment="Stretch"  VerticalAlignment="Stretch"
                 Width="Auto" Height="Auto" 
               ResizeDirection="Rows"/>

        <Views:ActionListControl x:Name="ActionList" Grid.Row="2" />

    </Grid>
</UserControl>
